package modelo;

public class Condicion {

	private String nombre;
	private String variableA;
	private String variableB;

	public String getVariableA() {
		return variableA;
	}

	public void setVariableA(String variableA) {
		this.variableA = variableA;
	}

	public String getVariableB() {
		return variableB;
	}

	public void setVariableB(String variableB) {
		this.variableB = variableB;
	}

	public Condicion(String nombre) {
		setNombre(nombre);

	}

	public String getNombre() {
		return nombre;
	}

	public void setNombre(String nombre) {
		this.nombre = nombre;
	}
	
	@Override
	public String toString() {
		String s = getNombre() + "(" + getVariableA();
		if (getVariableB() == null){
			s = s + ")";
		} else {
			s = s + "," + getVariableB() + ")";
		}
		return s;
	}
}